<template>
  <div class="dialog-container">
    <el-dialog :visible.sync="showLog" width="50%" title="详情" :before-close="handleClose">

    </el-dialog>
  </div>
</template>

<script>
  import {
    getData
  } from '@/api/monitor/errorLog'

  /* 工具 */
  import * as common from '@/utils/base/common'

  export default {
    /*  内容: 错误日志-详情  */
    name: 'errorLog_details',
    data() {
      return {
        myData: []
      }
    },
    props: ['showLog', 'rowId'],
    mounted() {
      this.getData()
    },
    methods: {
      getData(row) {
        getData(this.rowId).then(response => {
          this.myData = response.data
        }).catch(err => {
          common.message(this, 'error', 2, '获取数据失败!')
          console.error(err)
        })
      },

      handleClose() {
        this.$emit('closeDialog') // 向父组件发送关闭事件
      },

    } // methods end
  }
</script>

<style scoped>
</style>
